package com.ms.p2p.provider;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.account.Account;
import com.ms.p2p.entity.account.AccountRecharge;
import com.ms.p2p.entity.account.Withdraw;
import com.ms.p2p.entity.loan.Loan;
import com.ms.p2p.entity.system.AdminUser;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface MemberAccountProvider {

    public int openAccount(Account account);

    public Account findByUserId(int userId);


    public BigDecimal sumYuebao();



    public List<Map<String, Object>> findPager(String userId, String userName,
                                               String begin_date, String end_date, PageBean page);

    public int findCount(String userId, String userName, String begin_date,
                         String end_date);

    public List<Map<String, Object>> findAll(String userId, String userName,
                                             String begin_date, String end_date);

    public List<Map<String, Object>> geteveryday(PageBean page);

    public List<Account> findlistByCollection(String collection);


    public void CacueEvc(String evc_id, BigDecimal successAmount, Integer u_id,
                         Loan borrow) ;

    public List<Map<String, Object>> FindTG();
    public void OperAccount(String ip,BigDecimal money, int userId, String remark,
                            String type,String s);


    public List<Map<String, Object>> findtenderListIndex();


    public List<Map<String, Object>> findtenderListPager(String time_limit, String begin_date, String end_date, PageBean page);


    public List<Map<String, Object>> findCollectioListPager(String userId, String userName, String realname, String begin_date, String end_date, String is_day, PageBean page);


    public void cashVerify(String ip, Withdraw withdraw, String remark) ;

    void rechargeVerify(AccountRecharge recharge, String header, String remoteIp, AdminUser adminUser,String  remark,String status);
}
